package com.kingdee.openimport.patch_service.service;

import com.kingdee.openimport.patch_service.enume.PatchType;
import com.kingdee.openimport.patch_service.model.Patch;

import java.util.List;

/**
 * Created by Niki on 2018/4/21 10:48
 */
public interface IPatchService {
    void create(Patch patch);

    /**
     * 查询某个版本下的所有的补丁
     * @param version
     * @return
     */
    List<Patch> findByVersion(String version);

    /**
     * 仅查询某个版本下的所有的class以及字节流
     * @param version
     * @return
     */
    List<Patch> findIdAndClassNameByVersionAndType(String version, PatchType type);

}
